<?php

namespace App\Jobs;

use Illuminate\Support\Facades\Log;

class SendNotificationJob extends Job
{
    protected $content;

    /**
     * Create a new job instance.
     *
     * @return void
     */
    public function __construct($content)
    {
        $this->content = $content;
    }

    /**
     * Execute the job.
     *
     * @return bool
     */
    public function handle()
    {
        Log::info('发送通知队列 content ' . $this->content);
        sendNotification($this->content);
        return true;
    }
}
